import request from '@/until/request'
import Vue from 'vue';


// 新增公司
export const companyAdd = (params) => {
  return request({
    url: `${Vue.prototype.$configURL}company/add`,
    method: 'post',
    data: params,
    headers: {
      isToken: true,
      repeatSubmit: false
    }
  })
}

// 公司列表
export const companyList = (params) => {
  return request({
    url: `${Vue.prototype.$configURL}company/list`,
    method: 'get',
    params: params,
    headers: {
      isToken: true,
      repeatSubmit: false
    }
  })
}

// 修改公司
export const companyUpdate = (params) => {
  return request({
    url: `${Vue.prototype.$configURL}company/update`,
    method: 'post',
    data: params,
    headers: {
      isToken: true,
      repeatSubmit: false
    }
  })
}
